package com.midou.administration.controller;


import com.midou.administration.entity.RoleFunction;
import com.midou.administration.service.RoleFunctionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;


/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author MrChen
 * @since 2021-03-24
 */
@RestController
@RequestMapping("/administration/role-function")
public class RoleFunctionController {
    @Resource
    private RoleFunctionService roleFunctionService;
    @RequestMapping("/add/role/function")
    public Integer addRoleFunction(@RequestBody RoleFunction rf){
        return roleFunctionService.addRoleFunction(rf);
    }
    @RequestMapping("/del/role/function")
    public Integer delRoleFunction(@RequestBody RoleFunction rf){
        return roleFunctionService.delRoleFunction(rf);
    }
}
